import Vue from "vue";
import Vuex from "vuex";
import { config } from "vuex-module-decorators";
import { IStoreState } from "@/@types/store";
import LayoutStore from "@/store/modules/LayoutStore";
import UserStore from "@/store/modules/UserStore";

// Set rawError to true by default on all @Action decorators
config.rawError = true;

Vue.use(Vuex);

export default new Vuex.Store<IStoreState>({
  // modules: {
  //   layout: LayoutStore,
  //   user: UserStore,
  // },
});
